const {
	defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	publicPath: './',

	devServer: {
		proxy: {
			'/api': {
				target: 'http://www.liulongbin.top:8000',
				pathRewrite: {
					'^/api': ''
				},
				ws: true,
				changeOrigin: true
			},
		}
	},

	chainWebpack: config => {

		config.set('externals', {
			vue: 'Vue',
			'vue-router': 'VueRouter',
			vuex: 'Vuex',
			vant: 'vant',
			axios: 'axios',
			lodash: '_',
		})
	},
})
